{% extends 'eform_base.html' %}



{% block body %}

<div class="container-fluid mt-3">

        
    <div class="card">
        <div class="card-header">
            {{es.title}}
        </div>
        <div class="card-body">
            <table class="table">

                <thead>
                    <tr>
                        <th>#ID</th>
                        <th>Work Order</th>
                        <th>Done By</th>
                        <th>Done Date</th>
                        <th>Progress</th>
                        <th>Verified By</th>
                        <th>Endorsed By</th>
                    </tr>
                </thead>
                <tbody>
                    
                    {% for form in eforms %}
                        
                        <tr>
                            <td>
                                <a href="{% url 'eform:eformView' form.id %}">#{{form.id}}</a>
                            </td>
                            <td>
                                
                                {% if form.workOrderList %}
                                    
                                    <a href="{% url 'workstation_wo' form.workOrderList %}">{{form.workOrderList|default_if_none:'--'}}</a>
                                    {% else %}
                                    --
                                {% endif %}
                                    
                            </td>
                            <!-- <td>
                                <a href="{% url 'eform:eformView' form.id %}">{{form.eformSchema.title}}</a>
                            </td> -->
                            <td>
                                {{form.doneby}}
                            </td>
                            <td>
                                {{form.doneDate}}
                            </td>
                            <td>
                                {{form.getProgress}}
                            </td>
                            <td>
                                {{form.verifiedby|default_if_none:'--'}}
                            </td>
                            <td>
                                {{form.endorsedby|default_if_none:'--'}}
                            </td>
                        </tr>
                    {% endfor %}
                        
                </tbody>
            </table>

        </div>
    </div>
</div>

{% endblock body %}
    